package com.premadefood.service;

import com.premadefood.domain.News;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 23854
* @description 针对表【news】的数据库操作Service
* @createDate 2024-02-27 16:10:49
*/
public interface NewsService extends IService<News> {

    List<News> getFocusNews(HttpServletRequest request);

    List<News> searchNewsByTitle(String searchContext);

    News getDetail(Integer newsId,HttpServletRequest request);

    List<News> viewedHistoryNews(HttpServletRequest request);

}
